package cn.edu.shou.lab.homework.work1.jcc.commonClass;

import java.io.Serializable;

public class Student implements Serializable {
    private int stuid;//学号属性,因为学号具有唯一性,用户输入容易冲突,所以不使用构造方法初始化,在添加到list时,根据Classes中create_stuid生成.
    private String name;
    private String sex;
    private int age;

    public Student(String name,String sex,int age){
        this.name = name;
        this.sex = sex;
        this.age = age;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getStuid() {
        return stuid;
    }

    public void setStuid(int stuid) {
        this.stuid = stuid;
    }

    public String getSex() {
        return sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

}
